﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using cwtrock.model;
using cwtrock.service.impl;

namespace cwtrock.view
{
    public partial class UserInfoFrm : Form
    {

        private SysUsr usr;

        public UserInfoFrm(SysUsr usr)
        {
            InitializeComponent();
            this.usr = usr;
            this.logName.Text = this.usr.Usrid;
            this.logName.Enabled = false;

            this.logPwd.Text = this.usr.Usrpwd;
        }

        private void 关闭_Click(object sender, EventArgs e)
        {
            this.Hide();
        }

        private void modBtn_Click(object sender, EventArgs e)
        {
            string pwd = this.logPwd.Text;
            string userid = this.logName.Text;

            SysUsrServiceImpl service = new SysUsrServiceImpl();
            service.modUserPwd(userid,pwd);

            this.Hide();

        }

       
    }
}
